package com.example.finalcameraproject.repository;

import com.example.finalcameraproject.model.Camera;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CameraRepository extends JpaRepository<Camera, Long> {
    Page<Camera> findByStateContainingIgnoreCase(String CameraState, Pageable pageable);


}
